package net.ericaro.neojavagen.blocks;

/**
 * <b>Block</b> ::= "{" <{@link net .ericaro .neojavagen .blocks .BlockStatements BlockStatements}>? "}"
 * 
 * @author eric@ericaro.net
 */
public class Block extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.StatementWithoutTrailingSubstatement, net.ericaro.neojavagen.classes.InstanceInitializer, net.ericaro.neojavagen.classes.MethodBody {
	private net.ericaro.neojavagen.blocks.BlockStatements blockStatements;

	public Block() {
		this.blockStatements = null;
	}

	public Block(net.ericaro.neojavagen.blocks.BlockStatements blockStatements) {
		super();
		this.blockStatements = blockStatements;
	}

	public net.ericaro.neojavagen.blocks.BlockStatements getBlockStatements() {
		return blockStatements;
	}

	public void setBlockStatements(net.ericaro.neojavagen.blocks.BlockStatements blockStatements) {
		this.blockStatements = blockStatements;
	}

	@Override
	public java.lang.String toString() {
		return print("{", blockStatements, "}");
	}
}
